<template>
  <div
    class="Chip_WinIcon"
    :class="{ winPanel }"
    title="开始"
    @click="toggleWinPanel"
  >
    <div class="flexMode hc vc h48 fs24">
      <Icon meta="Microsoft" />
    </div>
  </div>
</template>
<script>
export default {
  inheritAttrs: false,
  name: "Chip_WinIcon",
  computed: {
    winPanel() {
      return this.$store.state.desk.winPanel
    },
  },
  created() {
    this.init()
  },
  methods: {
    init() {},
    toggleWinPanel() {
      this.$store.commit("desk/toggleWinPanel")
    },
  },
}
</script>
<style lang="scss" scoped>
.Chip_WinIcon {
  height: 3rem;
  width: 3rem;
  margin: 0 $dis10;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    top: left;
    right: 0;
    height: 3px;
    background-color: transparent;
  }
  &:hover {
    background-color: $white1;
    backdrop-filter: saturate(150%) blur(4px);
  }
  &.winPanel {
    background-color: $white2;
    backdrop-filter: saturate(150%) blur(4px);
    &::after {
      background-color: $white3;
    }
  }
}
</style>
